# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-search-engine-parser
_pkgname=search-engine-parser
pkgver=0.6.8
pkgrel=5
pkgdesc='Scrapes search engine pages for query titles, descriptions and links.'
arch=('any')
groups=('blackarch')
url='https://pypi.org/project/search-engine-parser/#files'
license=('MIT')
depends=('python' 'python-aiohttp' 'python-lxml' 'python-beautifulsoup4'
         'python-blessed')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('73d9dcfbc30aa73729e0fcfbd3c6ce5281fe36ea5dad3c8841a979478da65875f3744a34913606f020309c316980e41c80a5baba605524fcb378f14a0bfa7c4d')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

